package com.prft.rms.entity;

// Generated Aug 18, 2009 4:13:41 PM by Hibernate Tools 3.2.1.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * EmployeeKeywords generated by hbm2java
 */
@Entity
@Table(name = "EMPLOYEE_KEYWORDS", catalog = "RMS")
public class EmployeeKeywords implements java.io.Serializable {

	private Integer keywordsId;
	private Employee employee;
	private String keywordsName;
	private String keywordsDescription;
	private Date keywordsStartDate;
	private Integer keywordsBasemonth;
	private char isActive;
	private Date lastUpdated;

	public EmployeeKeywords() {
	}

	public EmployeeKeywords(Employee employee, String keywordsName, char isActive, Date lastUpdated) {
		this.employee = employee;
		this.keywordsName = keywordsName;
		this.isActive = isActive;
		this.lastUpdated = lastUpdated;
	}

	public EmployeeKeywords(Employee employee, String keywordsName, String keywordsDescription, Date keywordsStartDate,
			Integer keywordsBasemonth, char isActive, Date lastUpdated) {
		this.employee = employee;
		this.keywordsName = keywordsName;
		this.keywordsDescription = keywordsDescription;
		this.keywordsStartDate = keywordsStartDate;
		this.keywordsBasemonth = keywordsBasemonth;
		this.isActive = isActive;
		this.lastUpdated = lastUpdated;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "KEYWORDS_ID", unique = true, nullable = false)
	public Integer getKeywordsId() {
		return this.keywordsId;
	}

	public void setKeywordsId(Integer keywordsId) {
		this.keywordsId = keywordsId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "EMID", nullable = false)
	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	@Column(name = "KEYWORDS_NAME", nullable = false, length = 100)
	public String getKeywordsName() {
		return this.keywordsName;
	}

	public void setKeywordsName(String keywordsName) {
		this.keywordsName = keywordsName;
	}

	@Column(name = "KEYWORDS_DESCRIPTION")
	public String getKeywordsDescription() {
		return this.keywordsDescription;
	}

	public void setKeywordsDescription(String keywordsDescription) {
		this.keywordsDescription = keywordsDescription;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "KEYWORDS_START_DATE", length = 10)
	public Date getKeywordsStartDate() {
		return this.keywordsStartDate;
	}

	public void setKeywordsStartDate(Date keywordsStartDate) {
		this.keywordsStartDate = keywordsStartDate;
	}

	@Column(name = "KEYWORDS_BASEMONTH")
	public Integer getKeywordsBasemonth() {
		return this.keywordsBasemonth;
	}

	public void setKeywordsBasemonth(Integer keywordsBasemonth) {
		this.keywordsBasemonth = keywordsBasemonth;
	}

	@Column(name = "IS_ACTIVE", nullable = false, length = 1)
	public char getIsActive() {
		return this.isActive;
	}

	public void setIsActive(char isActive) {
		this.isActive = isActive;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_UPDATED", nullable = false, length = 19)
	public Date getLastUpdated() {
		return this.lastUpdated;
	}

	public void setLastUpdated(Date lastUpdated) {
		this.lastUpdated = lastUpdated;
	}

}
